package org.jeecg.modules.workvehicleborrow.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("work_vehicle_borrow")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="workvehicleborrow对象", description="workvehicleborrow")
public class workvehicleborrowVo {

    /**序号*/
    @Excel(name = "序号", width = 15)
    @ApiModelProperty(value = "序号")
    private String borrowId;
    /**借用人*/
    @Excel(name = "借用人", width = 15)
    @ApiModelProperty(value = "借用人")
    private String borrowUser;
    /**借用的车辆编号*/
    @Excel(name = "借用的车辆编号", width = 15)
    @ApiModelProperty(value = "借用的车辆编号")
    private String borrowVehicle;
    /**序号*/
    @Excel(name = "车俩名称", width = 15)
    @ApiModelProperty(value = "车俩名称")
    private String vehicleName;

    /**序号*/
    @Excel(name = "车俩号码", width = 15)
    @ApiModelProperty(value = "车俩号码")
    private String vehicleNumber;

    /**借用时间*/
    @Excel(name = "借用时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "借用时间")
    private Date borrowStartTime;

    /**还车时间*/
    @Excel(name = "还车时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "还车时间")
    private Date borrowEndTime;

    /**开始里程*/
    @Excel(name = "开始里程", width = 15)
    @ApiModelProperty(value = "开始里程")
    private Double borrowStartMileage;

    /**结束里程*/
    @Excel(name = "结束里程", width = 15)
    @ApiModelProperty(value = "结束里程")
    private Double borrowEndMileage;

    /**车辆状态0，未借用，1，以借用，2维修中*/
    @Excel(name = "车辆状态0，未借用，1，以借用，2维修中", width = 15)
    @ApiModelProperty(value = "车辆状态0，未借用，1，以借用，2维修中")
    @Dict(dicCode = "vehicleState" )
    private Integer vehicleState;

    public String getBorrowVehicle() {
        return borrowVehicle;
    }

    public void setBorrowVehicle(String borrowVehicle) {
        this.borrowVehicle = borrowVehicle;
    }

    public Integer getVehicleState() {
        return vehicleState;
    }

    public void setVehicleState(Integer vehicleState) {
        this.vehicleState = vehicleState;
    }

    public String getBorrowId() {
        return borrowId;
    }

    public void setBorrowId(String borrowId) {
        this.borrowId = borrowId;
    }

    public String getBorrowUser() {
        return borrowUser;
    }

    public void setBorrowUser(String borrowUser) {
        this.borrowUser = borrowUser;
    }

    public String getVehicleName() {
        return vehicleName;
    }

    public void setVehicleName(String vehicleName) {
        this.vehicleName = vehicleName;
    }

    public String getVehicleNumber() {
        return vehicleNumber;
    }

    public void setVehicleNumber(String vehicleNumber) {
        this.vehicleNumber = vehicleNumber;
    }

    public Date getBorrowStartTime() {
        return borrowStartTime;
    }

    public void setBorrowStartTime(Date borrowStartTime) {
        this.borrowStartTime = borrowStartTime;
    }

    public Date getBorrowEndTime() {
        return borrowEndTime;
    }

    public void setBorrowEndTime(Date borrowEndTime) {
        this.borrowEndTime = borrowEndTime;
    }

    public Double getBorrowStartMileage() {
        return borrowStartMileage;
    }

    public void setBorrowStartMileage(Double borrowStartMileage) {
        this.borrowStartMileage = borrowStartMileage;
    }

    public Double getBorrowEndMileage() {
        return borrowEndMileage;
    }

    public void setBorrowEndMileage(Double borrowEndMileage) {
        this.borrowEndMileage = borrowEndMileage;
    }
}
